package cn.qingyun.gis.modules.alongstreet.service;

import cn.qingyun.gis.modules.alongstreet.entity.AlongStreetProofread;
import cn.qingyun.gis.modules.alongstreet.request.StreetAddRequest;
import cn.qingyun.gis.modules.alongstreet.request.StreetKwRequest;
import cn.qingyun.gis.modules.alongstreet.request.StreetRequest;
import cn.qingyun.gis.modules.alongstreet.response.AlongStreetResponse;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.concurrent.Future;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author guest
 * @since 2024-03-20
 */
public interface IAlongStreetProofreadService extends IService<AlongStreetProofread> {

    /**
     * 分页查询 沿街POI列表
     */
    IPage<AlongStreetResponse> queryPoiByParams(StreetRequest request);

    /**
     * 沿街POI导入
     */
    void importPoiCsv(MultipartFile file);

    /**
     * 沿街POI摸排
     */
    String streetProofread(StreetKwRequest request);

    /**
     * 上传图片
     */
    String uploadBase64Image(String imageName, String imageBase64);

    /**
     * 获取图片
     *
     * @param response
     * @param imagePath
     */
    void downloadImage(HttpServletResponse response, String imagePath);
    /**
     * 添加沿街POI
     * */
    void addStreet(StreetAddRequest request);
}
